import request from '@/utils/request.js'

export const recommendApi = {
  // 获取个性化推荐课程
  getUserRecommendations: (userId) => {
    return request({
      url: 'user/api/recommendations',
      method: 'GET',
      params: { userId }
    })
  },
  
  // 记录用户行为数据
  trackUserBehavior: (data) => {
    return request({
      url: 'user/api/user/behavior/track',
      method: 'POST',
      data
    })
  },
  
  // 获取热门推荐
  getHotRecommend: () => {
    return request({
      url: 'api/courses/recommend',
      method: 'GET'
    })
  }
} 